/**
 * Copyright (c) 2011-2017, James Zhan 詹波 (jfinal@126.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jfinal.core;

import com.jfinal.render.ViewType;

/**
 * Global constants definition
 * 全局常量定义
 */
public interface Const {
	
	String JFINAL_VERSION = "3.2";  // JFinal版本
	
	ViewType DEFAULT_VIEW_TYPE = ViewType.JFINAL_TEMPLATE;  // 视图类型
	
	String DEFAULT_BASE_UPLOAD_PATH = "upload";  // 上传路径
	
	String DEFAULT_BASE_DOWNLOAD_PATH = "download";  // 下载路径
	
	String DEFAULT_ENCODING = "UTF-8";  // 字符编码
	
	boolean DEFAULT_DEV_MODE = false;  // 运行模式
	
	String DEFAULT_URL_PARA_SEPARATOR = "-";  // url分隔符
	
	String DEFAULT_VIEW_EXTENSION = ".html";  // 视图扩展名称
	
	int DEFAULT_MAX_POST_SIZE = 1024 * 1024 * 10; // Default max post size of multipart request: 10 Meg 最大上传容量
	
	int DEFAULT_I18N_MAX_AGE_OF_COOKIE = 999999999;  // cookie存活时间
	
	int DEFAULT_FREEMARKER_TEMPLATE_UPDATE_DELAY = 3600; // For not devMode only
	
	String DEFAULT_TOKEN_NAME = "_jfinal_token";  // token名称
	
	int DEFAULT_SECONDS_OF_TOKEN_TIME_OUT = 900; // 900 seconds ---> 15 minutes
	
	int MIN_SECONDS_OF_TOKEN_TIME_OUT = 300; // 300 seconds ---> 5 minutes
}

